package datatypes;

public class CoordinatePrecise implements Cloneable {
	public double x;
	public double y;
	public double z;
	
	public CoordinatePrecise(double x, double y, double z) {
		this.x = x;
		this.y = y;
		this.z = z;
	}
	
	public CoordinatePrecise clone() {
		return new CoordinatePrecise(x, y, z);
	}
	
	public Coordinate toAbsCoordinate() {
		return new Coordinate(AbsInt.fromDouble(x), AbsInt.fromDouble(y), AbsInt.fromDouble(z));
	}
	
	public String toString() {
		return new String("Coordinate: ("+x+", "+y+", "+z+")");
	}
	
}
